<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="../userPanelTemplate.xhtml">
 <ui:define name="content">
     <form>
         <h:outputLink value="reportsDefault.jsf"> <h:outputText value="Back"/>  </h:outputLink>
     </form>
        <h:dataTable var="location" value="#{addressesWithDevices.listAddressesWithDevices}"
                 rowClasses="row1, row2" headerClass="tableHeader">
            <h:column>
                <f:facet name="header">
                    <h:outputText value="ID"/>
                </f:facet>
                <h:outputText value="#{location.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Country"/>
                </f:facet>
                <h:outputText value="#{location.country.name}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="City"/>
                </f:facet>
                <h:outputText value="#{location.city.name}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Street"/>
                </f:facet>
                <h:outputText value="#{location.street.name}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Building"/>
                </f:facet>
                <h:outputText value="#{location.building.name}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Apartment"/>
                </f:facet>
                <h:outputText value="#{location.apartment.name}"/>
            </h:column>

        </h:dataTable>
     <form>
         <h:outputLink value="reportsDefault.jsf"> <h:outputText value="Back"/>  </h:outputLink>
     </form>
    </ui:define>
</ui:composition>